Skip to content

Instantly share code, notes, and snippets.

@andreas-esders-kopecky
andreas-esders-kopecky / lambda_birthday.py
Last active November 29, 2026 20:44
A Lambda Birthday
# beta-reduce me!
EXPRESSION = (
(lambda zero: (lambda successor: (lambda double: (lambda add: (lambda nil: (lambda construct: (lambda append: (lambda map_list: map_list(lambda n: add(n)(successor(double(double(double(successor(double(successor(double(zero))))))))))(append(append(append(append(append(append(construct(double(double(double(successor(double(double(successor(double(zero)))))))))(nil))(append(construct(successor(double(successor(double(double(double(successor(double(double(successor(double(zero))))))))))))(nil))(construct(successor(double(successor(double(double(double(successor(double(double(successor(double(zero))))))))))))(nil))))(append(construct(double(double(successor(double(successor(double(double(double(successor(double(zero)))))))))))(nil))(append(construct(double(successor(double(double(successor(double(successor(double(double(successor(double(zero))))))))))))(nil))(construct(successor(double(successor(double(successor(double(zero)))))))(nil)))))(append(append(construct(double(succe

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@unrays
unrays / padded_mismatch.cpp
Last active November 29, 2026 20:42
Experimental AVX2-Based String Mismatch Algorithm in C++20 Using Last-Character Padding, Aligned SIMD Loads, and Population Counting.
// Copyright (c) November 2026 Félix-Olivier Dumas. All rights reserved.
// Licensed under the terms described in the LICENSE file
template<std::size_t MAX_CHAR_COUNT = 512>
std::size_t avx2_padded_mismatch_count(
const std::string& lhs,
const std::string& rhs
) {
static constexpr std::size_t SIMD_WIDTH_BYTES = sizeof(__m256i);
@brianasu
brianasu / hexTileUnity.shader
Last active November 29, 2026 20:29
Hex tiling
Shader "Custom/hex tiling surface"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
_RotStrength ("Rot Strength", FLOAT) = 0
_FalloffContrast ("Falloff Contrast", FLOAT) = 0.6

Writing C Software without the Standard Library
FOR UN*X


There are many tutorials on the web that explain how to build a simple "Hello, World" in C without the use of libc on AMD64, but most of them stop there.

This guide hopes to provide a more complete explanation that will allow you to build yourself a small framework to write more complex programs. The code will support both AMD64, and i386.

@TheCherno
TheCherno / GameEngineDoc.md
Last active November 29, 2026 19:53
GameEngineDoc - AI Game Engine spec

AI Game Engine

We're building a production-grade, simple and straight-forward 3D Game Engine for Windows, macOS and Linux (Ubuntu 24+). This is professional-grade software that needs to be stable, fully-tested, and real-world deployable. No hacks, no shortcuts - solid as a rock.

Dev Workflow

  • Ask questions only when absolutely necessary - work autonomously
  • IMRORTANT! DO NOT look outside of working directory or use other code on my computer as reference
  • Start by asking question to determine engine name. Suggest a few
  • Testing is of the utmost importance - use lots of unit tests (any framework, simple is good), run automated testing
  • Setup a scene used for testing, which tests every single feature in the engine - all components, and entire scripting API
@vyach-vasiliev
vyach-vasiliev / bordview.md
Last active November 29, 2026 19:48
Bordview and sources